//+-------------------------------------------------------------------------+
//| DIFFERENCE FROM THE BASIC TRANSLATION: TickVolumeProfile_B_Weighted     |
//| For each historical bar, volume does NOT belong entirely to buy         |
//| or sell. Instead, it is divided according to the formula:               |
//|    buyShare  = (close - low) / (high - low)                             |
//|    sellShare = 1 - buyShare                                             |
//| If close is near high → almost all volume = buy.                        |
//| If close is near low → almost all volume = sell.                        |
//| If close is in the middle → 50/50.                                      |
//| Additionally, the direction is taken into account: for a bullish candle |
//| the ratio of (close-low)/(high-low) is applied; for a bearish candle —  |
//| symmetrically adjusted by (high-close)/(high-low).                      |
//+-------------------------------------------------------------------------+

